#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230706.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../market-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy market-gateway "
cp ../market-gateway/target/market-gateway.jar ./market/gateway/jar

echo "begin copy market-auth "
cp ../market-auth/target/market-auth.jar ./market/auth/jar

echo "begin copy market-visual "
cp ../market-visual/market-monitor/target/market-visual-monitor.jar  ./market/visual/monitor/jar

echo "begin copy market-modules-system "
cp ../market-modules/market-system/target/market-modules-system.jar ./market/modules/system/jar

echo "begin copy market-modules-file "
cp ../market-modules/market-file/target/market-modules-file.jar ./market/modules/file/jar

echo "begin copy market-modules-job "
cp ../market-modules/market-job/target/market-modules-job.jar ./market/modules/job/jar

echo "begin copy market-modules-gen "
cp ../market-modules/market-gen/target/market-modules-gen.jar ./market/modules/gen/jar

